<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    function* Foo(action) {
      const imp = yield ('111' + action)
      const aaaa = yield imp
      yield aaaa
    }
    const foo = Foo('ma');
    console.log(foo.next().value)
    console.log(foo.next('guo').value)
    console.log(foo.next('aaaa').value)
  </script>
</body>

</html>